Remove gtk_style_context_reset_widgets
authorMatthias Clasen <mclasen@redhat.com>
Fri, 10 Apr 2020 16:45:28 +0000 (12:45 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 10 Apr 2020 16:45:28 +0000 (12:45 -0400)
This should never be necessary to call from the outside.
Whenever we fail to update styles properly, it is a bug.

docs/reference/gtk/gtk4-sections.txt
gtk/gtksettings.c
gtk/gtkstylecontext.h
gtk/gtkstylecontextprivate.h

index f5462d9d5d648f3a4165c7384037a76aa1ece475..98d7fed3aa8698c483344112ac70fb78947538fb 100644 (file)
@@ -4437,7 +4437,6 @@ gtk_style_context_get_margin
 gtk_style_context_lookup_color
 gtk_style_context_remove_provider
 gtk_style_context_remove_provider_for_display
-gtk_style_context_reset_widgets
 gtk_style_context_restore
 gtk_style_context_save
 gtk_style_context_add_class
index 7139d5746088c3e295e53b10aa4b57e74cdd8c67..6ce91b34b19a30c90421d7cd020f8a8de4c8dc25 100644 (file)
@@ -25,7 +25,7 @@
 #include "gtkintl.h"
 #include "gtkprivate.h"
 #include "gtkscrolledwindow.h"
-#include "gtkstylecontext.h"
+#include "gtkstylecontextprivate.h"
 #include "gtkstyleproviderprivate.h"
 #include "gtktypebuiltins.h"
 #include "gtkversion.h"
index 551bee924ebc8ae6f5516bb58a3f99e20188d83b..6a310b5c3fae7a1e0e733db09518fa1444f55deb 100644 (file)
@@ -903,9 +903,6 @@ GDK_AVAILABLE_IN_ALL
 void gtk_style_context_get_margin           (GtkStyleContext *context,
                                              GtkBorder       *margin);
 
-GDK_AVAILABLE_IN_ALL
-void gtk_style_context_reset_widgets        (GdkDisplay      *display);
-
 GDK_AVAILABLE_IN_ALL
 void        gtk_render_insertion_cursor
                                    (GtkStyleContext     *context,
index 4074d06a9681aaad2048c011866e1a8cb42dc85b..f01adc5edbb419b0167b9c85568c4b08a0546c66 100644 (file)
@@ -59,6 +59,9 @@ PangoAttrList *_gtk_style_context_get_pango_attributes       (GtkStyleContext *c
 AtkAttributeSet *_gtk_style_context_get_attributes           (AtkAttributeSet    *attributes,
                                                               GtkStyleContext    *context);
 
+GDK_AVAILABLE_IN_ALL
+void gtk_style_context_reset_widgets        (GdkDisplay      *display);
+
 G_END_DECLS
 
 #endif /* __GTK_STYLE_CONTEXT_PRIVATE_H__ */